﻿using System.ComponentModel;
using System.Runtime.Serialization;

namespace ServiceCore.Entity.Core
{
    [Serializable]
    [DataContract]
    public class UserLoginDto
    {
        /// <summary>
        /// id 主键自增长
        /// </summary>
        [Description("id 主键自增长")]
        [DataMember]
        public long Id { get; set; }
        /// <summary>
        /// 账号
        /// </summary>
        [Description("账号")]
        [DataMember]
        public string Account { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        [Description("姓名")]
        [DataMember]
        public string Name { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Description("密码")]
        [DataMember]
        public string Pwd { get; set; }
        
        /// <summary>
        /// 停用状态（1启用，0停用）
        /// </summary>
        [Description("停用状态（1启用，0停用）")]
        [DataMember]
        public int? IsUsed { get; set; }

        /// <summary>
        /// 过期时间（小时）
        /// </summary>
        [Description("过期时间（小时）")]
        [DataMember]
        public int ExpiresHour { get; set; }        
        /// <summary>
        /// token
        /// </summary>
        [Description("token")]
        [DataMember]
        public string Token { get; set; }
    }
}
